package com.ywy.service.impl;

import com.ywy.dao.UserSignDao;
import com.ywy.entity.UserSign;
import com.ywy.service.UserSignService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户签到Service实现类
 *
 * @author ywy
 * @date 2022/8/26 9:13
 */
@Service
public class UserSignServiceImpl implements UserSignService {
    @Resource
    private UserSignDao userSignDao;

    @Override
    public UserSign save(UserSign userSign) {
        return userSignDao.save(userSign);
    }

    @Override
    public UserSign getTodaySignByUserId(Integer userId) {
        return userSignDao.getTodaySignByUserId(userId);
    }
}
